// JavaScript Document
function s(s){
	for(var i =1 ;i<=2;i++){
		$('#t'+i).css('display','none');
	}
	document.getElementById("tab1").style.backgroundImage='url(images/tab2.jpg)';
	document.getElementById("tab2").style.backgroundImage='url(images/tab2.jpg)';
	if(s==1) document.getElementById("tab1").style.backgroundImage='url(images/tab1.jpg)';
	else if(s==2) document.getElementById("tab2").style.backgroundImage='url(images/tab1.jpg)';
	$('#t'+s).css('display','block');
}
function jsAddItemToSelect(objSelect) {        
    //判断是否存在        
	var arr1=new Array(['软件专业'],['多媒体'],['网络专业'],['信管专业']);
	var op2=document.getElementById("op2");
	if(objSelect.value=='0'){
		op2.options.length = 0; 
		var varItem = new Option('全部','全部');
    	op2.options.add(varItem);
		for(var i =0;i<arr1.length;i++){
			var varItem = new Option(arr1[i], arr1[i]);
    	    op2.options.add(varItem);
		}
	}
}   
function jsAddItemToSelect1(objSelect) {        
    //判断是否存在        
	var arr1=new Array(['1'],['2'],['3'],['4']);
	var op3=document.getElementById("op3");
	if(objSelect.value=='软件专业'){
		op3.options.length = 0;  
		var varItem = new Option('全部','全部');
    	op3.options.add(varItem);
		for(var i =0;i<arr1.length;i++){
			var varItem = new Option(arr1[i], arr1[i]);
    	    op3.options.add(varItem);
		}
	}
} 
function zhuanf(ob){
	if(ob.value!='0'){
		$(".zhtext").css('display','block');
	}else{
		$(".zhtext").css('display','none');
	}
}



function s(s){
	for(var i =1 ;i<=2;i++){
		$('#t'+i).css('display','none');
	}
	document.getElementById("tab1").style.backgroundImage='url(images/tab2.jpg)';
	document.getElementById("tab2").style.backgroundImage='url(images/tab2.jpg)';
	if(s==1) document.getElementById("tab1").style.backgroundImage='url(images/tab1.jpg)';
	else if(s==2) document.getElementById("tab2").style.backgroundImage='url(images/tab1.jpg)';
	$('#t'+s).css('display','block');
}
function f(){
	document.getElementById("t1").style.display='none';
	document.getElementById("t2").style.display='none';
}
function finance32(objSelect) {        
    //判断是否存在        
	var arr1=new Array(['软件专业'],['多媒体专业'],['网络专业'],['信管专业']);
	var op2=document.getElementById("op2");
	if(objSelect.value=='0'){
		f();
		op2.options.length = 0;
		document.getElementById("t1").style.display='block';
		var varItem = new Option('全部','全部');
    	op2.options.add(varItem);
		for(var i =0;i<arr1.length;i++){
			var varItem = new Option(arr1[i], arr1[i]);
    	    op2.options.add(varItem);
		}
	}
}   
function finance321(objSelect) {        
    //判断是否存在        
	if(objSelect.value=='软件专业'){
		f();
		document.getElementById("t2").style.display='block';
	}
} 
window.onload=function(){
	$('table.t1 tr:even:gt(0)').css('background','#deefff');    //偶数行,且行数大于0(即标题)
	$('table.t1 tr:odd').css('background','#fff');
}